package com.marquisx.tzdice;

import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.LinearLayout;

public class Help extends Activity implements OnTouchListener, OnClickListener
{
	private static final String TAG = "TZDice: Help";
	
	private View basicContainer;
	private LinearLayout backgroundImageContainer;
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help);
		findViews();
		setListeners();
		prepareViews();
	}
	
	private void findViews()
	{
		basicContainer = findViewById(R.id.basic_container);
		backgroundImageContainer = (LinearLayout) findViewById(R.id.background_image_container);
	}
	
	// Add listeners for button clicks
	private void setListeners()
	{
		
	}
	
	private void prepareViews()
	{
		basicContainer.setBackgroundColor(Setting.getBackgroundColor(this));
		backgroundImageContainer.setBackgroundResource(Setting.getBackgroundPictureId(this));
		
		if (null != backgroundImageContainer.getBackground())
		{
			backgroundImageContainer.getBackground().setAlpha(Constants.ALPHA_BG_PIC);
		}
		
		setTitle(getText(R.string.app_name) + " " + getText(R.string.app_version_name) + " - " + getText(R.string.help_title));
	}

	@Override
	public boolean onTouch(View v, MotionEvent event)
	{
		return false;
	}

	@Override
	public void onClick(View v)
	{
	}
}
